package com.kuangstudy.io.print;

import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Collections;

/**
 * ClassName: Demo2
 * date: 2021/07/16 23:08:09
 *
 * @author zlk
 */
public class Demo2 {
    public static void main(String[] args) throws FileNotFoundException {
        System.out.println("控制台输出");
        PrintStream ps = new PrintStream("e:\\文本输出.txt");
        System.setOut(ps);
        System.out.println("文本输出");
        ps.close();

    }
}
